Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatability mode for forbidden APIs for Java 12 #37199

Merged
merged 2 commits into from
Jan 9, 2019

Conversation

alpar-t
Copy link
Contributor

@alpar-t alpar-t commented Jan 7, 2019

Limit the maximum targetVersion we set forbiddenApis to. No support for Java 12 yet.
Closes #37007.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra

project.runtimeJavaVersion.getMajorVersion() : project.runtimeJavaVersion
if (project.runtimeJavaVersion > JavaVersion.VERSION_11) {
doLast {
println "Forbidden APIs does not support java version past 11. Will use the signatures from 11 for " +
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why a bare print statement? Seems this should at least be a warning log. But what can a dev do about it? Maybe nothing should be printed and an issue created and linked here to remove once forbidden apis supports Java 12.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, i converted it to info so it leaves a trace in CI.
An issue isn't actionable either unless we implement the support in forbidden APIs ourselves.

Copy link
Member

@not-napoleon not-napoleon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alpar-t alpar-t merged commit d68d6aa into elastic:master Jan 9, 2019
@alpar-t alpar-t deleted the forbidden-apis-java-12-37007 branch January 9, 2019 16:26
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v6.7.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forbidden APIs check fails - missing bundled signatures for java 12
6 participants